//
//  BSKAboutUsViewController.m
//  MicroMemory
//
//  Created by rimi on 16/7/23.
//  Copyright © 2016年 BlueSky. All rights reserved.
//

#import "BSKAboutUsViewController.h"
#import "BSKconsts.h"
@interface BSKAboutUsViewController ()
@property(nonatomic,strong) UIImageView * aboutUsImage;
@property(nonatomic,strong) UIButton * backButton;
@property(nonatomic,strong) UILabel * infoLabel;
@end

@implementation BSKAboutUsViewController

- (void)viewDidLoad {
    [super viewDidLoad];
	self.view.backgroundColor = [UIColor whiteColor];
	_aboutUsImage = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"launchImage"]];
	_aboutUsImage.frame = self.view.bounds;
	[self.view addSubview:_aboutUsImage];
	_backButton  = [UIButton buttonWithType:UIButtonTypeCustom];
	[_backButton setImage:[UIImage imageNamed:@"back"] forState:UIControlStateNormal];
	_backButton.frame = CGRectMake(5, StatusBarHeight+5, NavigationBarHeight -10, NavigationBarHeight -10);
	_backButton.imageEdgeInsets = UIEdgeInsetsMake(3, 3, 3, 3);
	[_backButton addTarget:self action:@selector(backAction:) forControlEvents:UIControlEventTouchUpInside];
	[self.view addSubview:_backButton];
	
	NSDictionary * infoDic = [[NSBundle mainBundle]infoDictionary];
	NSLog(@"%@",infoDic);
	_infoLabel = [[UILabel alloc]init];
	_infoLabel.text = [NSString stringWithFormat:@"-  V %@  -",infoDic[@"CFBundleShortVersionString"]];
	[_infoLabel sizeToFit];
	_infoLabel.center = CGPointMake(ScreenWidth/2, ScreenHeight*(4.5/6.0));
	_infoLabel.textColor = [UIColor whiteColor];
	[self.view addSubview:_infoLabel];
    // Do any additional setup after loading the view.
}

-(void)backAction:(UIButton *)sender{
	[self.navigationController popViewControllerAnimated:YES];
}
@end
